package com.hry.store.service.impl;

import com.hry.store.dao.CityMapper;
import com.hry.store.pojo.City;
import com.hry.store.service.CityService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CityServiceImpl implements CityService {
    @Autowired
    private CityMapper cityMapper;
    /**
     * 根据省份查询城市
     * @param provinceId
     * @return
     */
    @Override
    public List<City> getCity(Integer provinceId) {
        return cityMapper.selectByProvinceId(provinceId);
    }
}
